package com.ce.pms.charge.dao;

import java.util.List;

import com.ce.pms.base.dao.IPmsBaseDao;
import com.ce.pms.charge.model.BankAccountDomain;

public interface IBankAccountDao extends IPmsBaseDao<BankAccountDomain>{

	/**
	 * 功能描述: 根据房间ID查找银行帐号 <br>
	 * @param houseId
	 * @param validity 是否加可用限制
	 * @return
	 * Create author:yandawei <br>
	 * Create on:2008-7-31  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	BankAccountDomain getBankAccountByHouseId(Long houseId , boolean validity);

	/**
	 * 功能描述: 根据产权ID查找银行帐号 <br>
	 * @param proRightId 产权ID
	 * @param validity 是否只查询有效的实体 true：是；false：否
	 * @return
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-8-26  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public BankAccountDomain getBankAccountByProRightId(Long proRightId, boolean validity);

	/**
	 * 功能描述: 根据房间ID串查找银行帐号 <br>
	 * @param houseIds
	 * @param validity 是否加可用限制
	 * @return
	 * Create author:yandawei <br>
	 * Create on:2008-7-31  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	List<BankAccountDomain> getBankAccountListByHouseIds(String houseIds , boolean validity);

	/**
	 * 功能描述: 根据银行id查询银行账号数量 <br>
	 * @param bankId
	 * @return
	 *
	 * Create author:付湘辉 <br>
	 * Create on:2008-9-5  <br>
	 * Edit author:  <br>
	 * Edit on:    <br>
	 * Why:     <br>
	 */
	public Long getBankAccountCountByBankId(Long bankId);

}
